home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 65.zip / BS1 part 65 / DevPac v3.02b.adf / include / graphics / clip.i next >
Text File  |  1991-11-20  |  2KB  |  89 lines

  1.     IFND    GRAPHICS_CLIP_I
  2. GRAPHICS_CLIP_I SET    1
  3. **
  4. **    $Filename: graphics/clip.i $
  5. **    $Release: 1.3 $
  6. **
  7. **    
  8. **
  9. **    (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13.     IFND    GRAPHICS_GFX_I
  14.     include "graphics/gfx.i"
  15.     ENDC
  16.     IFND    EXEC_SEMAPHORES_I
  17.     include "exec/semaphores.i"
  18.     ENDC
  19.  
  20. NEWLOCKS    equ    1
  21.  
  22.  STRUCTURE  Layer,0
  23.     LONG    lr_front
  24.     LONG    lr_back
  25.     LONG    lr_ClipRect
  26.     LONG    lr_rp
  27.     WORD    lr_MinX
  28.     WORD    lr_MinY
  29.     WORD    lr_MaxX
  30.     WORD    lr_MaxY
  31.     STRUCT    lr_reserved,4
  32.     WORD    lr_priority
  33.     WORD    lr_Flags
  34.     LONG    lr_SuperBitMap
  35.     LONG    lr_SuperClipRect
  36.     APTR    lr_Window
  37.     WORD    lr_Scroll_X
  38.     WORD    lr_Scroll_Y
  39.     APTR    lr_cr
  40.     APTR    lr_cr2
  41.     APTR    lr_crnew
  42.     APTR    lr_SuperSaverClipRects
  43.     APTR    lr__cliprects
  44.     APTR    lr_LayerInfo
  45. *            just by lucky coincidence
  46. *            this is not confused with simplesprites
  47.     STRUCT    lr_Lock,SS_SIZE
  48.     STRUCT    lr_reserved3,8
  49.     APTR    lr_ClipRegion
  50.     APTR    lr_saveClipRects
  51.     STRUCT    lr_reserved2,22
  52.     APTR    lr_DamageList
  53.     LABEL   lr_SIZEOF
  54.  
  55.  STRUCTURE  ClipRect,0
  56.     LONG    cr_Next
  57.     LONG    cr_prev
  58.     LONG    cr_lobs
  59.     LONG    cr_BitMap
  60.     WORD    cr_MinX
  61.     WORD    cr_MinY
  62.     WORD    cr_MaxX
  63.     WORD    cr_MaxY
  64.     APTR    cr__p1
  65.     APTR    cr__p2
  66.     LONG    cr_reserved
  67.     LONG    cr_Flags
  68.  LABEL        cr_SIZEOF
  69.  
  70. * internal cliprect flags
  71. CR_NEEDS_NO_CONCEALED_RASTERS    equ    1
  72.  
  73. * defines for clipping
  74. ISLESSX equ 1
  75. ISLESSY equ 2
  76. ISGRTRX equ 4
  77. ISGRTRY equ 8
  78.  
  79. * for ancient history reasons
  80.     IFND    lr_Front
  81. lr_Front    equ lr_front
  82. lr_Back        equ lr_back
  83. lr_RastPort    equ    lr_rp
  84. cr_Prev        equ cr_prev
  85. cr_LObs        equ    cr_lobs
  86.     ENDC
  87.  
  88.     ENDC    ; GRAPHICS_CLIP_I
  89.